import { defineStore } from 'pinia'
import { THEME } from '@/constants/theme'

export const useThemeStore = defineStore('theme', {
  state: () => ({
    themeType: THEME.LIGHT
  }),
  getters: {},
  actions: {
    changeThemeType(themeType) {
      this.themeType = themeType
    }
  },
  // 开启数据缓存
  persist: true
})
